package com.anmoyi.service.impl;

import com.anmoyi.model.dao.CustommassageMapper;
import com.anmoyi.model.dao.SuggestionMapper;
import com.anmoyi.model.po.Custommassage;
import com.anmoyi.model.po.Suggestion;
import com.anmoyi.service.CustommassageService;
import com.anmoyi.service.SuggestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


@Service
public class CustommassageServiceImpl implements CustommassageService {

    @Autowired
    private CustommassageMapper custommassageMapper;


    @Override
    public void addCustommassage(Custommassage custommassage) {
        custommassage.setCreateTime(new Date());

        custommassageMapper.insertSelective(custommassage);
    }
    @Override
    public void updateByPrimaryKeySelective(Custommassage custommassage) {

        custommassageMapper.updateByPrimaryKeySelective(custommassage);
    }
    @Override
    public void deleteByPrimaryKey(String id) {

        custommassageMapper.deleteByPrimaryKey(id);
    }
    @Override
    public List<Custommassage> selectByuserId (Integer id) {

      return  custommassageMapper.selectByuserId(id);
    }


}
